﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="admin_Login" %>


<html>
<head runat="server">
    <LINK href="css/login.css" type=text/css rel=stylesheet>
    <link rel="stylesheet" type="text/css" href="themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="css/darren_form.css" />
    <link rel="stylesheet" type="text/css" href="themes/icon.css" />

    <script type="text/javascript" src="../js/jquery-1.6.min.js"></script>
    <script type="text/javascript" src="js/darren_common.js"></script>
    <script type="text/javascript" src="js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="js/lhgdialog.js?self=true&skin=default"></script>

    <link rel="stylesheet" type="text/css" href="themes/form.css" />
    <script type="text/javascript" charset="utf-8" src="editor/kindeditor.js"></script>
    <script type="text/javascript" charset="utf-8" src="editor/lang/en.js"></script>
    <title>*****系统</title>
    <script type="text/javascript">
        $(function () {
            $("#loginBtn").click(function () {
                var name = $.trim($("#txtUserName").val());
                var password = $.trim($("#password").val());
                DarkBO.Admin.Login(name, password, { error: function (d) { dark.dialog.closeLoading(); alert("内部错误。"); }, beforeSend: function () { dark.dialog.loading(); }, success: function (e) {
                    //darren.dialog.closeload();
                    if (e.ErrorCode > 0) {
                        dark.dialog.closeLoading();
                        alert(e.Description);
                    } else {
                        location.href = "default.aspx";
                    }
                }
                });
            });
        });
    </script>
</head>
<body>
<div id="loading" style="padding:5px;display:none">正在登陆，请稍后...</div>
    <form id="form1" runat="server">
<DIV id=div1>
  <TABLE id="login" height="100%" cellSpacing=0 cellPadding=0 width=800 
align=center>
    <TBODY>
      <TR id=main>
        <TD>
          <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%">
            <TBODY>
              <TR>
                <TD colSpan=4>&nbsp;</TD>
              </TR>
              <TR height=30>
                <TD width=380>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD rowSpan=4>&nbsp;</TD>
                <TD>用户名：</TD>
                <TD>
                    <input type="text" id="txtUserName" />
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD>密　码：</TD>
                <TD>
                 <input type="password" id="password" />
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD></TD>
                <TD align=right>                    
                    <input type="button" id="loginBtn" value="登  录" />
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=110>
                <TD colSpan=4>&nbsp;</TD>
              </TR>
            </TBODY>
          </TABLE>
        </TD>
      </TR>
      <TR id=root height=104>
        <TD>&nbsp;</TD>
      </TR>
    </TBODY>
  </TABLE>
</DIV>
<DIV id=div2 style="DISPLAY: none"></DIV>
    </form>
</body>
</html>
